package com.liam.order.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @Author: LiamLMK
 * @CreateTime: 2025-03-10
 * @Description:
 * @Version: 1.0
 */

@Configuration
public class BeanConfig {
    /**
     * REST 表现层资源状态转移
     */
    @Bean
    @LoadBalanced
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }

}
